package vo;

import java.io.Serializable;

import po.UserIdentity;
import po.UserPO;

public class UserVO implements Serializable {
	
	private static final long serialVersionUID = -3530035135206903507L;
	
	private UserPO userPO;
	
	public UserVO() {
		super();
	}
	
	public UserVO(UserPO userPO) {
		this.userPO = userPO;
	}
	
	public UserVO(String username, String password, UserIdentity identity) {
		this.userPO = new UserPO(0, username, password, identity);
	}

	public UserPO getUserPO() {
		return this.userPO;
	}
	
	public String getUsername() {
		return this.userPO.getUsername();
	}
	
	public String getPassword() {
		return this.userPO.getPassword();
	}
	
	public UserIdentity getIdentity() {
		return this.userPO.getIdentity();
	}
	
	public String toString() {
		return userPO.toString();
	}

	public int getID(){
		return userPO.getId();
	}
}
